package com.dddd.blog.api.user.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 用户登录记录表
 * </p>
 *
 * @author dddd
 * @since 2022-02-27
 */
@TableName("ums_user_login")
@ApiModel(value = "UserLogin对象", description = "用户登录记录表")
@Data
public class UserLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty("登录ip")
    private String loginIp;

    @ApiModelProperty("备注")
    private String note;


    @Override
    public String toString() {
        return "UserLogin{" +
            "id=" + id +
            ", userId=" + userId +
            ", loginTime=" + loginTime +
            ", loginIp=" + loginIp +
            ", note=" + note +
        "}";
    }
}
